//
//  PGCustomShopFeatureView.m
//  YIChuSeller
//
//  Created by 田小椿 on 2018/12/28.
//  Copyright © 2018年 xiangshengjun. All rights reserved.
//

#import "PGCustomShopFeatureView.h"

@implementation PGCustomShopFeatureView
- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    
    if (self) {
//        [self addSubview:self.nameLabel];
    }
    
    return self;
}

- (void)setSubviewsWithSuperViewBounds:(CGRect)superViewBounds {
    
    self.mainImageView.frame = CGRectMake(0, 0, superViewBounds.size.width, superViewBounds.size.height-20);
    self.coverView.frame = self.mainImageView.bounds;
//    self.nameLabel.frame = CGRectMake(0, 5, superViewBounds.size.width, 20);
//    self.detailLabel.frame = CGRectMake(0, superViewBounds.size.height-60, superViewBounds.size.width, 60);
}
- (UILabel *)nameLabel {
    if (_nameLabel == nil) {
        _nameLabel = [[UILabel alloc] init];
        _nameLabel.font = [UIFont systemFontOfSize:16.0];
        _nameLabel.backgroundColor = [UIColor redColor];
        _nameLabel.textColor = [UIColor darkGrayColor];
    }
    return _nameLabel;
}
//
//- (UILabel *)detailLabel {
//    if (_detailLabel == nil) {
//        _detailLabel = [[UILabel alloc] init];
//        _detailLabel.font = [UIFont systemFontOfSize:13.0];
//        _detailLabel.textColor = [UIColor lightGrayColor];
//        _detailLabel.numberOfLines = 2;
//    }
//    return _detailLabel;
//}



@end
